package com.srit.map.business.bean;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author chenxiling
 * 上报数据类
 */
public class Report {
	private int id;
	private String name;
	private int userId;
	private String value;
	private Date report_date;
	private String report_dateStr;
	private boolean status = false;
	DateFormat format = new SimpleDateFormat("yyyy.MM.dd");

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Date getReport_date() {
		return report_date;
	}
	public void setReport_date(Date report_date) {
		this.report_date = report_date;
	}
	
	public String getReport_dateStr() {
		return report_dateStr;
	}
	public void setReport_dateStr(String report_dateStr) {
		this.report_dateStr = report_dateStr;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public void updateDate() throws ParseException{
		if(report_dateStr!=null&& !report_dateStr.equals(""))
			this.report_date=format.parse(report_dateStr);
	}
}
